package com.eshop.modules.template.service;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.eshop.modules.template.service.dto.YxShippingTemplatesDto;
import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Pageable;
import com.eshop.modules.template.service.dto.ShippingTemplatesQueryCriteria;
import com.eshop.modules.template.service.dto.ShippingTemplatesDto;
import com.eshop.modules.template.domain.ShippingTemplates;
import com.eshop.common.service.BaseService;

public interface ShippingTemplatesService extends BaseService<ShippingTemplates>
{
    void addAndUpdate(final Integer id, final ShippingTemplatesDto shippingTemplatesDto);
    
    Map<String, Object> queryAll(final ShippingTemplatesQueryCriteria criteria, final Pageable pageable);
    
    List<ShippingTemplates> queryAll(final ShippingTemplatesQueryCriteria criteria);
    
    void download(final List<YxShippingTemplatesDto> all, final HttpServletResponse response) throws IOException;
}
